﻿using System;
using System.Collections.Generic;
using Model;

public partial class UserControl_DebugTest : System.Web.UI.UserControl
{
    private IList<DebugTestInfo> _dtis = new List<DebugTestInfo>();

    public IList<DebugTestInfo> dtis
    {
        get { return _dtis; }
        set { _dtis = value; }
    }

    public UserControl_DebugTest()
    {     
   
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        BindDebugTests();
    }

    protected void BindDebugTests()
    {
        this.GridView1.DataSource = dtis;
        this.GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, System.Web.UI.WebControls.GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindDebugTests();
    }
}
